<template>
	<view>
		<view class="doublec" style="margin-bottom: 30rpx;margin-top: 15rpx;" >
			<!-- :class="{'item-hide':  !(item.leftStatus &&  item.type == 'hello')}" > -->
			<image id="chart1" src="/static/img/robot.png" class="robot"></image>
			<text id="chart2" class="initial">👋{{ user }}，您好，我是智能客服小智，请问有什么可以帮您？</text>
		</view>
	</view>
</template>

<script>
	export default {
		props:{
			item :{
				type:Object,
				require:true,
				default:{}
			}
		},
		data() {
			return {
				user:""
				
			}
		},
		computed(){
			this.user = uni.getStorageSync('userName')
		},
		methods: {

		}
	}
</script>

<style lang="scss">
	.robot{
		width: 59rpx;
		height: 50rpx;
		margin: 0 14rpx 0 0;
	}	
	.initial{
		margin-top: 10rpx;
		font-size: 20rpx;
		color: #686868;
	}
	
	.doublec {
		margin: 0;
		border-radius: 14rpx;
		background-color: white;
		border: 2rpx solid rgba(187, 187, 187, 0.5294117647);
		padding: 10 30rpx;
		margin-bottom: 30rpx;
		max-width: 600rpx;
		// max-width: 600rpx;
		/* overflow: hidden; */

		.left-message {
			font-size: 18rpx;
			font-family: AppleColorEmoji;
			color: #000;
			white-space: nowrap;
			text-overflow: ellipsis;
			max-width: 500rpx;
			margin: 0;
			border-radius: 14rpx;
			/* overflow: hidden; */
		}
	}
</style>